package com.iteaj.core.mapper;

import com.iteaj.core.dto.RoleDto;
import com.iteaj.core.entity.Role;
import com.iteaj.util.module.mvc.orm.IBaseDao;
import org.apache.ibatis.annotations.Mapper;

import java.io.Serializable;
import java.util.List;

/**
 * create time: 2019/11/27
 *
 * @author iteaj
 * @since 1.0
 */
@Mapper
public interface IRoleDao extends IBaseDao<Role> {

    RoleDto joinRoleMenuById(Long id);

    void updateRoleAndPermsById(Role role);

    void createRoleAndPerms(RoleDto role);

    void deleteAllJoinByIds(List<Long> list);

    List<Long> selectByAdminId(Serializable id);
}
